#include <cstdio>

#define MAX_DIGITS 1000
#define MAX_LENGTH (MAX_DIGITS + 2)


inline bool multiple_of_11 (const char number[MAX_LENGTH])
{
	int m, sd;
	const char *c;

	c = number;
	m = 1;
	sd = 0;
	do
	{
		putchar (*c);
		sd += m * (*c - '0');
		m = -m;
		++c;
	}
	while (*c != '\n');

	return sd % 11 == 0;
}


char number[MAX_LENGTH];


int main ()
{
	while (fgets (number, MAX_LENGTH, stdin), number[0] != '0' || number[1] != '\n')
	{
		if (multiple_of_11 (number))
			puts (" is a multiple of 11.");
		else
			puts (" is not a multiple of 11.");
	}

	return 0;
}